package com.mrd.gtimpframe.repository;

import com.mrd.gtimpframe.entity.CargoDeclaRecord;

import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CargoDeclaRecordMapper {
    int deleteByPrimaryKey(String id);

    int insert(CargoDeclaRecord record);

    int insertSelective(CargoDeclaRecord record);

    CargoDeclaRecord selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(CargoDeclaRecord record);

    int updateByPrimaryKey(CargoDeclaRecord record);

    CargoDeclaRecord selectByDidAndUploadWay(String did, String uploadWay);

    CargoDeclaRecord selectByBusinessAndUploadWay(String businessNo, String uploadWay);

    CargoDeclaRecord selectByInvNoAndUploadWay(String invNo, String uploadWay);

    List<CargoDeclaRecord> selectByUploadWayAndStatusNotIn(@Param("uploadWay") String uploadWay, @Param("status") List<String> status);

    int batchUpdateByPrimaryKey(List<CargoDeclaRecord> list);

    List<CargoDeclaRecord> selectByDid(List<String> dids);
}
